//
//  SCNNotificationExtension.swift
//  ShoucainuSwift
//
//  Created by 王家旭 on 2017/11/22.
//  Copyright © 2017年 Riluee. All rights reserved.
//

import Foundation

extension Notification {
    
    public struct Key {
        public static let State = "SCN.notification.key.state"
    }
    public struct LoginKey {
        public static let Login = "SCN.notification.key.Login"
    }
}

extension Notification.Name {
    
    
    public struct State {
        // 开始
        public static let RequestStart = Notification.Name(rawValue: "SCN.notification.key.state.requestStart")
        // 成功
        public static let RequestSuccess = Notification.Name(rawValue: "SCN.notification.key.state.requestSuccess")
        // 失败
        public static let RequestFailure = Notification.Name(rawValue: "SCN.notification.key.state.requestFailure")
        // 错误
        public static let RequestError = Notification.Name(rawValue: "SCN.notification.key.state.requestError")
    }
    
    public struct Login {
        // 登录
        public static let LoginSuccess = Notification.Name(rawValue: "SCN.notification.LoginKey.login.loginSuccess")
        // 退出
        public static let LogoutSuccess = Notification.Name(rawValue: "SCN.notification.LoginKey.login.logoutSuccess")
        
    }
}

